Skip to content

Domoticz

322 Topics 2.3k Posts
  • WS2812B LED Strip with Domoticz Selector Switch

    2
    0 Votes
    2 Posts
    3k Views
    AWIA
    @TestCenter does this help? Using the "Selector switch" in Domoticz (tutorial)
  • vera as master ,domoticz as slave! work as remote?

    2
    0 Votes
    2 Posts
    1k Views
    TmasterT
    so? nobody tryed it or its too stupid question?
  • Add demand variable to electricity pulse counter

    5
    0 Votes
    5 Posts
    2k Views
    AWIA
    @carlyler thanks for the explanation. That's an interesting way of charging for electricity... The "virtual sensor" had me a little confused as it is also used to create real virtual devices in Domoticz. I think you handled it the royal way. Although you could argue that the "calculation" should take place in the controller. Have fun and when you designed a way to lower your electricity bill let me know :smile:
  • Domoticz multiple gateways ?

    4
    0 Votes
    4 Posts
    3k Views
    Fat FlyF
    [image: 1474351004757-ekraanipilt-2016-09-20-08_02_54.png] I make esp8266+nrf24l01+ gateway with library 1.5. If sensor node send data j look from serial monitor, data + version mismatch. This gateway connected right ?
  • Repeater Node, problems

    19
    2 Votes
    19 Posts
    7k Views
    F
    I have some posts here for same problem https://forum.mysensors.org/topic/4079/my-best-nrf24l01-pa-lna-node-gateway-repeater-so-far/9
  • Water flow sensor setup problem

    8
    0 Votes
    8 Posts
    3k Views
    raptorjrR
    Well, I cant seem to find a solution to getting the total water volume from my sensor to Domoticz. Thinking about Plan B, is it possible to get the virtual dimmer percentage back to my node? Then I could do the comparison there, where I have total water volume.
  • Domoticz - MySensors: Unknown/Invalid sensor type (51)

    3
    0 Votes
    3 Posts
    2k Views
    alfredbA
    Ah, check, I'll give that a try, thanks!
  • S_HVAC in domoticz

    7
    0 Votes
    7 Posts
    3k Views
    dbemowskD
    @diamantmatch said: i guess this means that V_HVAC_FLOW_STATE and V_HVAC_SPEED are not implemented in domoticz yet? If you read through this post that I have out there for the RS485 bridge that I am working on for my RCS thermostat, there is some information regarding this in there. Regarding your comment directly, @pjr stated that V_HVAC_FLOW_STATE, V_HVAC_FLOW_MODE and V_HVAC_SPEED are not implemented in Domoticz yet. There is some other useful information in that post if you are looking to do something with your thermostat. My RS485 bridge is still a work in progress, but I had to put it on hold for a while as I am a beta tester for a different thermostat, so I currently have my RCS thermostat disconnected. I think it is worth it though to post to the Domoticz community that this would be a useful implementation.
  • ESP8266 gateway - Connection refused

    10
    0 Votes
    10 Posts
    7k Views
    hekH
    @172pilot said: MY_CONTROLLER_IP_ADDRESS The Vera plugin does not support client mode and must handle the connection to the ESP.8266. So instead go to the Vera/mysensors-device/advanced tab and enter the ESPs ip number.
  • How to set up a 'counter' in MySensors/Domoticz

    1
    0 Votes
    1 Posts
    2k Views
    No one has replied
  • Mysensors Ethernet GW w5100 problem

    45
    0 Votes
    45 Posts
    10k Views
    tlpeterT
    @mrc-core said: @tlpeter Ok it's fix i cant ping the gw ip but domoticz can see the new arduino gw. Now at the gw i'm getting this message: 0;255;3;0;9;TSP:MSG:READ 192-1-0 s=0,c=0,t=0,pt=0,l=0,sg=0: 0;255;3;0;9;!TSP:MSG:PVER mismatch 0;255;3;0;9;TSP:MSG:READ 192-1-0 s=0,c=0,t=0,pt=0,l=0,sg=0: 0;255;3;0;9;!TSP:MSG:PVER mismatch I don't undestand this mismatch I think VER is for version and maybe (a wild guess) the P for protocol??? Which version Domoticz are you running? try the latest beta. Is/are your gateway(s) upgraded too?
  • Some beginner questions

    9
    0 Votes
    9 Posts
    4k Views
    raptorjrR
    Don't know what I did wrong, but I didn't get the latest git version. I guess I somehow downloaded 2.0 again. But after some investigation I got the latest version and everything seems to be working now =) Thank you for your help.
  • MySensors 2.0 support

    11
    0 Votes
    11 Posts
    4k Views
    fetsF
    @Dave-Dan from what I read, you must first update the GW and then nodes. In my case, after changing the GW, I couldn't properly control my nodes with domoticz. Then i upgraded my sensorsand everything went good and smooth
  • Upgrading GW to MQTT

    2
    0 Votes
    2 Posts
    1k Views
    ?
    Hello, I would be interested in having this information as well. Plus, can we observe a performance difference by doing this? Many thanks.
  • MySensors & RPi?

    12
    0 Votes
    12 Posts
    3k Views
    F
    I am using 1.5.1 and it seems to be worse to have Serial GW than Ethernet GW. After I changed to Serial GW I got lots of not reporting Nodes. I change from Ethernet GW to Serial GW around 2016-07-27 16:00 I only had a few not reporting before change and after change I have much more not reporting nodes Before [image: 1469990210481-rpiserial2.png] After [image: 1469989980908-rpiserial.png]
  • Last seen?

    3
    0 Votes
    3 Posts
    2k Views
    kk02067K
    @AWI Thanks for your reply and tips to a beginner. I experimented with a couple of things in the sketch and after a little digging I seem to have got it working. The problem seem to be that if the values sent to the gateway is not in the correct format it wont work. If I send just one value in integer it works. But if I send alla three values as integer it stops working. If I send all three as "double" with two decimals it works as it should. The sketch when it functions as it should: /****************************************************************************** I2C_ReadAllData.ino BME280 Arduino and Teensy example Marshall Taylor @ SparkFun Electronics May 20, 2015 https://github.com/sparkfun/SparkFun_BME280_Arduino_Library This sketch configures the BME280 to read all measurements. The sketch also displays the BME280's physical memory and what the driver perceives the calibration words to be. Resources: Uses Wire.h for I2C operation Uses SPI.h for SPI operation Development environment specifics: Arduino IDE 1.6.4 Teensy loader 1.23 This code is released under the [MIT License](http://opensource.org/licenses/MIT). Please review the LICENSE.md file included with this example. If you have any questions or concerns with licensing, please contact techsupport@sparkfun.com. Distributed as-is; no warranty is given. ******************************************************************************/ #include <stdint.h> #include "SparkFunBME280.h" //Library allows either I2C or SPI, so include both. #include "Wire.h" #include "SPI.h" #define MY_DEBUG #define MY_RADIO_NRF24 #include <MySensors.h> #define SKETCH_NAME "Environment Sensor" #define SKETCH_MAJOR_VER "1" #define SKETCH_MINOR_VER "0" #define CHILD_ID_1 1 #define CHILD_ID_2 2 #define CHILD_ID_3 3 //Global sensor object BME280 Sensor; MyMessage msg1(CHILD_ID_1, V_TEMP); MyMessage msg2(CHILD_ID_2, V_HUM); MyMessage msg3(CHILD_ID_3, V_PRESSURE); void setup() { //***Driver settings********************************// //commInterface can be I2C_MODE or SPI_MODE //specify chipSelectPin using arduino pin names //specify I2C address. Can be 0x77(default) or 0x76 //For I2C, enable the following and disable the SPI section Sensor.settings.commInterface = I2C_MODE; Sensor.settings.I2CAddress = 0x77; //For SPI enable the following and dissable the I2C section //Sensor.settings.commInterface = SPI_MODE; //Sensor.settings.chipSelectPin = 10; //***Operation settings*****************************// //renMode can be: // 0, Sleep mode // 1 or 2, Forced mode // 3, Normal mode Sensor.settings.runMode = 3; //Normal mode //tStandby can be: // 0, 0.5ms // 1, 62.5ms // 2, 125ms // 3, 250ms // 4, 500ms // 5, 1000ms // 6, 10ms // 7, 20ms Sensor.settings.tStandby = 5; //filter can be off or number of FIR coefficients to use: // 0, filter off // 1, coefficients = 2 // 2, coefficients = 4 // 3, coefficients = 8 // 4, coefficients = 16 Sensor.settings.filter = 0; //tempOverSample can be: // 0, skipped // 1 through 5, oversampling *1, *2, *4, *8, *16 respectively Sensor.settings.tempOverSample = 1; //pressOverSample can be: // 0, skipped // 1 through 5, oversampling *1, *2, *4, *8, *16 respectively Sensor.settings.pressOverSample = 1; //humidOverSample can be: // 0, skipped // 1 through 5, oversampling *1, *2, *4, *8, *16 respectively Sensor.settings.humidOverSample = 1; // Serial.begin(57600); Serial.print("Program Started\n"); Serial.print("Starting BME280... result of .begin(): 0x"); //Calling .begin() causes the settings to be loaded delay(10); //Make sure sensor had enough time to turn on. BME280 requires 2ms to start up. Serial.println(Sensor.begin(), HEX); Serial.print("Displaying ID, reset and ctrl regs\n"); Serial.print("ID(0xD0): 0x"); Serial.println(Sensor.readRegister(BME280_CHIP_ID_REG), HEX); Serial.print("Reset register(0xE0): 0x"); Serial.println(Sensor.readRegister(BME280_RST_REG), HEX); Serial.print("ctrl_meas(0xF4): 0x"); Serial.println(Sensor.readRegister(BME280_CTRL_MEAS_REG), HEX); Serial.print("ctrl_hum(0xF2): 0x"); Serial.println(Sensor.readRegister(BME280_CTRL_HUMIDITY_REG), HEX); Serial.print("\n\n"); Serial.print("Displaying all regs\n"); uint8_t memCounter = 0x80; uint8_t tempReadData; for(int rowi = 8; rowi < 16; rowi++ ) { Serial.print("0x"); Serial.print(rowi, HEX); Serial.print("0:"); for(int coli = 0; coli < 16; coli++ ) { tempReadData = Sensor.readRegister(memCounter); Serial.print((tempReadData >> 4) & 0x0F, HEX);//Print first hex nibble Serial.print(tempReadData & 0x0F, HEX);//Print second hex nibble Serial.print(" "); memCounter++; } Serial.print("\n"); } Serial.print("\n\n"); Serial.print("Displaying concatenated calibration words\n"); Serial.print("dig_T1, uint16: "); Serial.println(Sensor.calibration.dig_T1); Serial.print("dig_T2, int16: "); Serial.println(Sensor.calibration.dig_T2); Serial.print("dig_T3, int16: "); Serial.println(Sensor.calibration.dig_T3); Serial.print("dig_P1, uint16: "); Serial.println(Sensor.calibration.dig_P1); Serial.print("dig_P2, int16: "); Serial.println(Sensor.calibration.dig_P2); Serial.print("dig_P3, int16: "); Serial.println(Sensor.calibration.dig_P3); Serial.print("dig_P4, int16: "); Serial.println(Sensor.calibration.dig_P4); Serial.print("dig_P5, int16: "); Serial.println(Sensor.calibration.dig_P5); Serial.print("dig_P6, int16: "); Serial.println(Sensor.calibration.dig_P6); Serial.print("dig_P7, int16: "); Serial.println(Sensor.calibration.dig_P7); Serial.print("dig_P8, int16: "); Serial.println(Sensor.calibration.dig_P8); Serial.print("dig_P9, int16: "); Serial.println(Sensor.calibration.dig_P9); Serial.print("dig_H1, uint8: "); Serial.println(Sensor.calibration.dig_H1); Serial.print("dig_H2, int16: "); Serial.println(Sensor.calibration.dig_H2); Serial.print("dig_H3, uint8: "); Serial.println(Sensor.calibration.dig_H3); Serial.print("dig_H4, int16: "); Serial.println(Sensor.calibration.dig_H4); Serial.print("dig_H5, int16: "); Serial.println(Sensor.calibration.dig_H5); Serial.print("dig_H6, uint8: "); Serial.println(Sensor.calibration.dig_H6); Serial.println(); } void presentation() { // Send the sketch version information to the gateway and Controller sendSketchInfo(SKETCH_NAME, SKETCH_MAJOR_VER "." SKETCH_MINOR_VER); // Register binary input sensor to sensor_node (they will be created as child devices) // You can use S_DOOR, S_MOTION or S_LIGHT here depending on your usage. // If S_LIGHT is used, remember to update variable type you send in. See "msg" above. present(CHILD_ID_1, S_TEMP); present(CHILD_ID_2, S_HUM); present(CHILD_ID_3, S_BARO); } void loop() { //Each loop, take a reading. //Start with temperature, as that data is needed for accurate compensation. //Reading the temperature updates the compensators of the other functions //in the background. /* Serial.print("Temperature: "); Serial.print(Sensor.readTempC(), 2); Serial.println(" degrees C"); Serial.print("Temperature: "); Serial.print(Sensor.readTempF(), 2); Serial.println(" degrees F"); Serial.print("Pressure: "); Serial.print(Sensor.readFloatPressure(), 2); Serial.println(" Pa"); Serial.print("Altitude: "); Serial.print(Sensor.readFloatAltitudeMeters(), 2); Serial.println("m"); Serial.print("Altitude: "); Serial.print(Sensor.readFloatAltitudeFeet(), 2); Serial.println("ft"); Serial.print("%RH: "); Serial.print(Sensor.readFloatHumidity(), 2); Serial.println(" %"); Serial.println(); delay(1000); */ double temperature; double humidity; double pressure; temperature=Sensor.readTempC(); humidity=Sensor.readFloatHumidity(); pressure=Sensor.readFloatPressure()/100; send(msg1.set(temperature,2)); send(msg2.set(humidity,2)); Serial.print(humidity, 2); send(msg3.set(pressure,2)); sleep(10000); }```
  • How to set the controller to work with ethernet only?

    1
    0 Votes
    1 Posts
    848 Views
    No one has replied
  • devices not in devices list

    18
    0 Votes
    18 Posts
    6k Views
    D
    @Dick said: gw.present(CHILD_ID_TEMP1, S_TEMP); gw.present(CHILD_ID_TEMP1, S_TEMP); Try changing the second ID to CHILD_ID_TEMP2 (note the "2") and see if that works better.
  • My garage door sensor

    12
    0 Votes
    12 Posts
    5k Views
    dbemowskD
    @Dringie As @AWI pointed out, the V_TEXT variable and S_INFO sensor type have not been implemented until version 2.0. He mentions that you can add them by putting these lines in your sketch: // new V_TEXT variable type (development 20150905) const int V_TEXT = 47 ; // new S_INFO sensor type (development 20150905) const int S_INFO = 36 ; I did that and it worked like a charm. I now havemy "Garage door position object that shows me the current state of the door as one of {Open, Closed, Opening, Closing, Obstruction}. As for posting the code, I will do that in another thread. I have a thread started under the Hardware section of the forum called "Automate garage door". Here is the link. https://forum.mysensors.org/topic/4059/automated-garage-door I will be posting the new code later tonight. I just want to tidy it up a bit before posting.
  • Starting problems with new sensors

    2
    0 Votes
    2 Posts
    952 Views
    mfalkviddM
    @Jasper-van-Winden if your sketch uses gw.begin(); the nodes will get nodeID from Domoticz (. They should be visible in Setup>Devices in Domoticz. If you have a quite new version of Domoticz (not sure when this was added but it is available in 3.4834) you can also see them if you click "Setup" on your Gateway on the Hardware page. See pictures below. Note: Sensors will need to both present themselves AND send the first value before they show up in Domoticz. [image: 1467745899037-domoticz_devices.png] [image: 1467745898907-domoticz_hardware1.png] [image: 1467745898955-domoticz_hardware2.png] Seeing st=fail in your log means that the node was unable to successfully send the message. That is usually a power or range issue. See https://forum.mysensors.org/topic/666/debug-faq-and-how-ask-for-help for information on how to read the serial debug log and how to troubleshoot power and range issues. See starting up the library on https://www.mysensors.org/download/sensor_api_15 for information on how to manually set node ID if you prefer that. I let Domoticz hand out nodeID for all my sensors.

13

Online

11.7k

Users

11.2k

Topics

113.1k

Posts